package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BEstimateDao;
import com.hongxun.modules.api.entity.BEstimateEntity;
import com.hongxun.modules.api.service.BEstimateService;



@Service("bEstimateService")
public class BEstimateServiceImpl implements BEstimateService {
	@Autowired
	private BEstimateDao bEstimateDao;
	
	@Override
	public BEstimateEntity queryObject(String guid){
		return bEstimateDao.queryObject(guid);
	}
	
	@Override
	public List<BEstimateEntity> queryList(Map<String, Object> map){
		return bEstimateDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bEstimateDao.queryTotal(map);
	}
	
	@Override
	public void save(BEstimateEntity bEstimate){
		bEstimate.setGuid(UUID.randomUUID().toString());
		bEstimateDao.save(bEstimate);
	}
	
	@Override
	public void update(BEstimateEntity bEstimate){
		bEstimateDao.update(bEstimate);
	}
	
	@Override
	public void delete(String guid){
		bEstimateDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bEstimateDao.deleteBatch(guids);
	}
	
}
